import request from '@/utils/request'

// 查询版本3 --- 退单信息列表
export function listRefund(query) {
  return request({
    url: '/sale/refund/list',
    method: 'get',
    params: query
  })
}

// 查询版本3 --- 退单信息详细
export function getRefund(id) {
  return request({
    url: '/sale/refund/' + id,
    method: 'get'
  })
}

// 新增版本3 --- 退单信息
export function addRefund(data) {
  return request({
    url: '/sale/refund',
    method: 'post',
    data: data
  })
}

// 导出版本3 --- 退单信息
export function exportRefund(query) {
  return request({
    url: '/sale/refund/export',
    method: 'get',
    params: query
  })
}

export function passRefund(query) {
  return request({
    url: '/sale/refund/pass',
    method: 'put',
    params: query
  })
}

export function noPassRefund(query) {
  return request({
    url: '/sale/refund/noPass',
    method: 'put',
    params: query
  })
}
